package com.cn.wanxi.util;

/**
 * 枚举
 */
public enum Tool {
    split("@@"),
    imgHref("E:\\wanxi\\step-four\\canyin04-0601\\web"),
    newsForHomePath("E:\\wanxi\\step-three\\newsForHome.txt"),
    navPath("E:\\wanxi\\step-three\\nav.txt"),
    companyPath("E:\\wanxi\\step-three\\company.txt"),//常量，只能用，不能进行修改
    productForHomePath("E:\\wanxi\\step-three\\productForHome.txt"),
    productPagePath("E:\\wanxi\\step-three\\productPage.txt"),
    newsPagePath("E:\\wanxi\\step-three\\news.txt");



    Tool(String path) {
        this.path = path;
    }
    private String path;

    public String getPath() {
        return path;
    }

    /**
     * 将要替换的字符串进行工具封装
     *
     * @param old
     * @return
     */
    public static String replace(String old) {
        return old.replace("[", "").replace("]", "");
    }


}
